<?php 
namespace Chat\Controller;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorinterface;
use Zend\EventManager\EventManager;

class ChatControllerFactory implements FactoryInterface


{
	protected $events;
	
	public function createService(ServiceLocatorInterface $serviceLocator)
	{
		$ctr = new ChatController();
 		$ctr->setChatService($serviceLocator->getServiceLocator()->get('chatService'));
 		
 		$this->events = new EventManager(__CLASS__);
		
		return $ctr;
	}
}

?>
